package com.log.demo.dto;

/**
 * @author weijinhao
 * @date 2023/11/18 17:03
 */
public enum ErrorCode {
    success(10000,"success"),
    fail(50001,"fail"),
    notsign(50002,"签约协议无效"),
    nomoney(50003,"余额不足"),
    unsaft(20000,"不明确的失败")
    ;

    private int code;

    private String msg;

    ErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
